/*
 *  ETA/OS - DHT11 sensor driver
 *  Copyright (C) 2017   Michel Megens <dev@bietje.net>
 *
 *  This program is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU Lesser General Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU Lesser General Public License for more details.
 *
 *  You should have received a copy of the GNU Lesser General Public License
 *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

#ifndef __DHT_SENSOR_H__
#define __DHT_SENSOR_H__
/**
 * @addtogroup dht11
 * @{
 */

/**
 * @brief DHT11 `ioctl()` options.
 */
typedef enum {
	DHT_SET_PIN, //!< Set the DHT11 data pin.
	DHT_RELEASE_PIN, //!< Release the DHT11 data pin.

	DHT_MEASURE_TEMPERATURE, //!< Switch to the temperature sensor.
	DHT_MEASURE_HUMIDITY, //!< Switch to the humidity sensor.

	DHT_MODE_DHT11,
	DHT_MODE_DHT22,
	DHT_MODE_DHT21,
} dht11_ioctl_t;

typedef enum {
	DHT11,
	DHT22,
	DHT21,
} dht_mode_t;

/** @} */
#endif
